

import Vue from 'vue'
import {
  NavBar,
  Step, Steps,
  Row,
  Col,
  Swipe,
  SwipeItem,
  Tab,
  Tabs,
  RadioGroup,
  Radio,
  Stepper,
  Form,
  AddressEdit,
  Lazyload,
  Toast,
  Tag,
  Dialog,
  Cell,
  CellGroup,
  Field,
  Icon,
  Button,
  Popup,
  Loading,
  Rate,
  List
} from 'vant';
Vue.use(NavBar);
Vue.use(Step).use(Steps);
Vue.use(Row).use(Col);
Vue.use(Swipe).use(SwipeItem);
Vue.use(Tab).use(Tabs);
Vue.use(RadioGroup);
Vue.use(Radio);
Vue.use(Stepper);
Vue.use(Form);
Vue.use(AddressEdit);
Vue.use(Lazyload, {
  preLoad: 9.16,
  error: 'static/imgs/error.png',
  loading: 'static/imgs/loading.gif',
  attempt: 2,
  listenEvents: ['scroll'],
  lazyComponent: true
});

Vue.use(Tag);
Vue.use(Dialog);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Field);
Vue.use(Icon);
Vue.use(Button);
Vue.use(Popup);
Vue.use(Loading);
Vue.use(Rate);
Vue.use(List);
Vue.use(Toast);
Toast.setDefaultOptions({
  duration: 1500
})
